<?php
    $model = $this->model;
?>
<table style="width:100%" class="lypf">
    <col width="25%"></col>
    <col width="75%"></col>
    <tr>
        <td class="cl-left">
            <ul>
                <li class="tabmenu" for="infor">Thông tin cá nhân</li>
                <li class="tabmenu" for="changepass">Thay đổi mật khẩu</li>
            </ul>
        </td>
        <td class="cl-right">
            <form id="infor" class="item">
            <div class="frm">
                <fieldset>
                    <legend>Cập nhật thông tin cá nhân</legend>
                    <div class="row">
                        <label>Tên cán bộ*</label>
                        <input type="text" id="Name" name="Name" value="<?=$model['Name']?>" class="w25" required readonly="readonly"/>
                    </div>
                     <div class="row">
                        <label>Ngày sinh</label>
                        <input type="text" id="Birthday" name="Birthday" value="<?=$model['Birthday']?>" class="w25" />
                        <label class="lb2">Giới tính</label>
                        <select name ="Sex" id ="Sex" style="width:26%;" class="normal">
                            <option id="" value="" name="">--Chọn giới tính--</option>
                            <option id="male" value="1" name="Nam" <?= ($model['Sex'] == '1')? 'selected': '';?> >Nam</option>
                            <option id="female" value="0" name="Nữ" <?= ($model['Sex'] == '0')? 'selected': '';?> >Nữ</option>
                        </select>
                    </div>
                    <div class="row">
                        <label>Địa chỉ</label>
                        <input type="text" id="Adress" name="Adress" value="" class="w70" />
                    </div>
                   <div class="row">
                        <label>Số điện thoại</label>
                        <input type="text" id="Mobile" name="Mobile" value="<?=$model['Mobile']?>" class="w25" />
                        <label class="lb2">Email</label>
                        <input type="email" id="Email" name="Email" value="<?=$model['Email']?>" class="w25 normal" />
                    </div>
                    <div style="padding-right: 10px;text-align:center; padding-bottom:2px;" class="row">
                        <input type="submit" id="saveinfo" name="saveinfo" value="Cập nhật" />
                        <input type="reset" id="btncancel" name="btncancel" value="Reset" />
                    </div>
                </fieldset>
            </div>
            </form>
            <form id="changepass" class="item">
            <div class="frm">
                <fieldset>
                    <legend>Thay đổi mật khẩu</legend>
                    <div class="row">
                        <label>Mật khẩu cũ</label>
                        <input type="password" id="passOld" name="passOld" value="" class="w25" required />
                    </div>
                    <div class="row">
                        <label>Mật khẩu mới</label>
                        <input type="password" id="passNew" name="passNew" value="" class="w25" required />
                    </div>
                    <div class="row">
                        <label>Nhập lại mật khẩu mới</label>
                        <input type="password" id="repassNew" name="repassNew" value="" class="w25" required />
                    </div>
                    <div style="padding-right: 10px;text-align:center; padding-bottom:2px;" class="row">
                        <input type="submit" id="updatepass" name="updatepass" value="Cập nhật" />
                    </div>
                </fieldset>
            </div>
            </form>
        </td>
    </tr>
</table>
<script type="text/javascript">
    var dProfile = new System_Admin_Profile({module: 'system', controller: 'profile'}); 
    dProfile.initialize();
</script>
<style>
    .lypf .cl-left {
        border-right: 1px solid #c3ccd8;
        vertical-align: top;
        background-color: #f5f5f5;
    }
    li.tabmenu {font-weight: bold;
        border-bottom: 1px solid #888888;
        height: 25px;
        line-height: 25px;
        cursor: pointer;
    }
    li.tabmenu.active {
        background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
        color: #ff0000;
    }
</style>
